package com.jmp.api.crm.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import one.stand.dto.PageResponse2;

/**
 * Created by chengjiarui on 2019-06-27.
 */
@Data
@ApiModel
public class BannerResponse {

    @ApiModelProperty("banner分页列表")
    private PageResponse2<Banner> banners;

    @Data
    @ApiModel
    @Builder
    public static class Banner {
        @ApiModelProperty("ID")
        private Integer id;
        @ApiModelProperty("资源路径")
        private String source;
        @ApiModelProperty("资源类型：0 图片")
        private Integer type;
        @ApiModelProperty("事件：0 无 1 商品详情")
        private Integer event;
        @ApiModelProperty("事件参数")
        private String eventId;
        @ApiModelProperty("事件参数名称")
        private String eventIdName;
        @ApiModelProperty("排序")
        private Integer sort;
        @ApiModelProperty("创建时间")
        private String createTime;
        @ApiModelProperty("是否优选")
        private boolean selected;
        @ApiModelProperty("是否上架")
        private boolean status;
    }
}
